home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Collection of Tools & Utilities
/
Collection of Tools and Utilities.iso
/
c
/
cpptut22.zip
/
CAR.CPP
< prev
next >
Wrap
C/C++ Source or Header
|
1992-01-20
|
366b
|
24 lines
// Chapter 7 - Program 5
#include "car.h"
void car::initialize(int in_wheels, float in_weight, int people)
{
passenger_load = people;
wheels = in_wheels;
weight = in_weight;
}
int car::passengers(void)
{
return passenger_load;
}
// Result of execution
//
// (this file cannot be executed)